package com.easybuilder.core.table.dao;

import com.easybuilder.common.base.dao.BaseDao;
import com.easybuilder.core.table.entity.SysTable;
import org.apache.ibatis.annotations.Delete;
import org.springframework.stereotype.Repository;


/**
 * @author ZXS
 * @version 1.0
 * @description 类
 * @date 2021-5-25 23:29
 */
@Repository
public interface TableDao extends BaseDao<SysTable> {

    /** 根据tableId，级联删除table/tableInfo */
    @Delete("delete from sys_table_info where table_id in (select id from sys_table where table_id = #{id})")
    int casecadeDeleteByTableId(Long id);
}
